﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WorkOne.Domain.Model;
using WorkOne.IRepository;
using WorkOne.IService;

namespace WorkOne.Service
{
    public class UserService : IUserService
    {
        private readonly IUserRepository userRe;

        public UserService(IUserRepository userRe)
        {
            this.userRe = userRe;
        }

        public User Userlogin(string username, string password)
        {
            return userRe.Userlogin(username, password);
        }
    }
}